package service;


import java.util.List;


import dao.NewsDao;
import model.NewsBean;

public class NewsService {


	public List<NewsBean> query_all_news() {
		NewsDao newsDao = new NewsDao();
		
		  return newsDao.query_all_news();
	}
	
	public NewsBean getNews(String id) {
		NewsDao newsDao = new NewsDao();
		return newsDao.getNews(id);
	}
}
